﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

public static class DebugTool
{
    //默认白色打印
    public static void Log(object obj)
    {
        string str = obj.ToString();
        Debug.Log("[" + Time.frameCount + "]   <color=#FFFFFF>" + str + "</color>");
    }

    //紫色打印
    public static void PurpleLog(object obj)
    {
        string str = obj.ToString();
        Debug.Log("["+Time.frameCount+"]   <color=#9400D3>" + str + "</color>");
    }

    //橙色打印
    public static void OrangeLog(object obj)
    {
        string str = obj.ToString();
        Debug.Log("[" + Time.frameCount + "]   <color=#FF4040>" + str + "</color>");
    }

    //黄色打印
    public static void YellowLog(object obj)
    {
        string str = obj.ToString();
        Debug.Log("[" + Time.frameCount + "]   <color=#FFFF00>" + str + "</color>");
    }

    //绿色打印
    public static void GreenLog(object obj)
    {
        string str = obj.ToString();
        Debug.Log("[" + Time.frameCount + "]   <color=#66CD00>" + str + "</color>");
    }

    //蓝色打印
    public static void BlueLog(object obj)
    {
        string str = obj.ToString();
        Debug.Log("[" + Time.frameCount + "]   <color=#00EEEE>" + str + "</color>");
    }
}
